const BigNumber=require("bignumber.js")
BigNumber.config({
  ERRORS: false
});
const string = {
  num1: BigNumber(0),
  num2: BigNumber(0),
  num3: BigNumber(0)
}
const { num1, num2, num3 } = string;
console.log('num1:' + num1);
console.log('num2:' + num2);
console.log('num3:' + num3);

const number1 = new BigNumber(4.321e+4); // 43210
console.log('number1:' + number1);

const number2 = new BigNumber(4.321e+6); // 4321000
console.log('number1:' + number2);

const number3 = new BigNumber(NaN); // NaN
console.log('number1:' + number3);
// let x1 = new BigNumber(123.4567)
// let y1=new BigNumber(123456.7e-3)
// console.log(x1.eq(y1))
// let x2=new BigNumber(10101,2)
// let y2=new BigNumber("ABCD",16)
// console.log(x2.plus(y2))
// console.log(x2.plus(y2).toString())
// let x3=new BigNumber(0.5)
// let y3=new BigNumber(0.4)
// console.log(x3.minus(y3))
// console.log(x3.minus(y3).toString())
// let x4=new BigNumber(22222222)
// let y4=new BigNumber(77777777)
// console.log(x4.times(y4))
// console.log(x4.times(y4).toString())
// console.log(x4.div(y4))
// console.log(x4.div(y4).toFixed(6))
// let x5=new BigNumber(123.45678)
// console.log(x5.s)
// console.log(x5.e)
// console.log(x5.c)